package com.kingyun.gpsinspection.purificationservice.services.jsm.outerservice.impl;


import com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm.PostMapper;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.PostType;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.postVo;
import com.kingyun.gpsinspection.purificationservice.facade.service.jsm.OutPostTypeService;
import com.kingyun.gpsinspection.purificationservice.facade.service.jsm.post.JsmPostTypeService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by zmling on 2017/1/6.
 */
public class OutPostTypeServiceImpl implements OutPostTypeService {
    @Autowired
    private JsmPostTypeService jsmPostTypeService;
    @Autowired
    private PostMapper postMapper;
    /**
     * 查询岗位类型信息
     * @param postType
     * @return
     */
    @Override
    public List<PostType> findPostTypeList(String postType) {
       List<PostType> list = jsmPostTypeService.findPostTypeList(postType);
        return list;
    }

    @Override
    public List<postVo> findListPostByOrgId(String orgId) {
        return postMapper.findListPost(orgId);
    }
}
